/*
 * @作者: lqx
 * @LastEditors: lqx
 * @FilePath: \net-vue\src\router.js
 */
import Vue from 'vue'
import Router from 'vue-router'
import Home from './view/Home'

import DevFlowView from "./view/device/DevFlowView";
import FailureAnalysis from "./view/fault/FailureAnalysis";
import TopoMain from "./view/topology/TopoMain";
import MibShow from "./view/mibshow/Mib";
import TrapView from "./view/fault/TrapView";

Vue.use(Router);
export default new Router({
    routes: [
        {
            path: '/home',
            name: 'Home',
            component: Home,
            hidden:true,
        
            children:[
                {
                    path: '/topo',
                    name: '拓扑展示',
                    component: TopoMain,
                    hidden:true,
                },
                {
                    path: '/devForm',
                    name: '流量展示',
                    component: DevFlowView,
                    hidden:true,
                },{
                    path: '/failAnalysis',
                    name: '故障分析',
                    component: FailureAnalysis,
                    hidden:true,
                },{
                    path:'/mib',
                    name:'MIB浏览',
                    component: MibShow,
                    hidden:true,
                },
                {
                    path: '/trap',
                    name: 'TRAP日志',
                    component: TrapView,
                    hidden:true,
                }
            ]
        },
        {
            path: '/',
            redirect: '/home'
        }
    ]
})
